#!/bin/sh

if [ -e $1 ]
then
    T=`mktemp --tmpdir=./`
    echo "#include \"AbacusSim.h\"" > $T
    cat $1 >> $T
    g++ -x c++ $T AbacusSim.cpp -o $1.out -Wall -Wextra -pedantic -ggdb3
    rm $T
else
    echo File $T not found.
    exit 1
fi

